<<<<<<< HEAD 李舜生的宝藏

想要我的宝藏吗?来偷吧!

160165 files in 16902 folders (166551545860190)
呵哒!劳资转身就是一脚! 【憨憨的博客教你科学上网】
Loading...

(欢迎来到我的世界)

× Close Show:
Columns:
======= "", ]; dirs[16900] = [ "00/纪录片/蓝色星球.The.Blue.Planet/Season 02*0*2019/12/17 16:01", "BBC.The.Blue.Planet.II.2017.EP01.BluRay.1080p.DTS-HD.MA5.1.x264-beAst.mkv*6996715635*2019/12/15 08:39", "BBC.The.Blue.Planet.II.2017.EP02.BluRay.1080p.DTS-HD.MA5.1.x264-beAst.mkv*3500299060*2019/12/15 08:39", "BBC.The.Blue.Planet.II.2017.EP03.BluRay.1080p.DTS-HD.MA5.1.x264-beAst.mkv*7291064568*2019/12/15 08:39", "BBC.The.Blue.Planet.II.2017.EP04.BluRay.1080p.DTS-HD.MA5.1.x264-beAst.mkv*6456013888*2019/12/15 08:39", "BBC.The.Blue.Planet.II.2017.EP05.BluRay.1080p.DTS-HD.MA5.1.x264-beAst.mkv*8502647741*2019/12/15 08:39", "BBC.The.Blue.Planet.II.2017.EP06.BluRay.1080p.DTS-HD.MA5.1.x264-beAst.mkv*8169095953*2019/12/15 08:39", "BBC.The.Blue.Planet.II.2017.EP07.BluRay.1080p.DTS-HD.MA5.1.x264-beAst.mkv*5862596495*2019/12/15 08:39", 46778433340, "", ]; dirs[16901] = [ "00/纪录片/蓝色星球2 Blue Planet II (2017)/Blue.Planet.II.S01.1080p.BluRay.x264-SHORTBREHD[rartv]*0*2020/01/10 13:48", "Blue.Planet.II.S01E01.1080p.BluRay.x264-SHORTBREHD.mkv*4694271206*2020/01/09 22:18", "Blue.Planet.II.S01E02.1080p.BluRay.x264-SHORTBREHD.mkv*4693243933*2020/01/09 22:20", "Blue.Planet.II.S01E03.1080p.BluRay.x264-SHORTBREHD.mkv*4692140546*2020/01/09 22:23", "Blue.Planet.II.S01E04.1080p.BluRay.x264-SHORTBREHD.mkv*4694428286*2020/01/09 22:25", "Blue.Planet.II.S01E05.1080p.BluRay.x264-SHORTBREHD.mkv*4693093752*2020/01/09 22:27", "Blue.Planet.II.S01E06.1080p.BluRay.x264-SHORTBREHD.mkv*4693599559*2020/01/09 22:29", "Blue.Planet.II.S01E07.1080p.BluRay.x264-SHORTBREHD.mkv*4692801855*2020/01/09 22:32", "RARBG.txt*31*2020/01/09 22:32", 32853579168, "16902", ]; dirs[16902] = [ "00/纪录片/蓝色星球2 Blue Planet II (2017)/Blue.Planet.II.S01.1080p.BluRay.x264-SHORTBREHD[rartv]/Subs*0*2020/01/10 13:52", "Blue.Planet.II.S01E01.1080p.BluRay.x264-SHORTBREHD.idx*21994*2020/01/09 22:32", "Blue.Planet.II.S01E01.1080p.BluRay.x264-SHORTBREHD.sub*3721216*2020/01/09 22:32", "Blue.Planet.II.S01E02.1080p.BluRay.x264-SHORTBREHD.idx*21904*2020/01/09 22:32", "Blue.Planet.II.S01E02.1080p.BluRay.x264-SHORTBREHD.sub*3485696*2020/01/09 22:32", "Blue.Planet.II.S01E03.1080p.BluRay.x264-SHORTBREHD.idx*21229*2020/01/09 22:32", "Blue.Planet.II.S01E03.1080p.BluRay.x264-SHORTBREHD.sub*3450880*2020/01/09 22:32", "Blue.Planet.II.S01E04.1080p.BluRay.x264-SHORTBREHD.idx*25639*2020/01/09 22:32", "Blue.Planet.II.S01E04.1080p.BluRay.x264-SHORTBREHD.sub*4118528*2020/01/09 22:32", "Blue.Planet.II.S01E05.1080p.BluRay.x264-SHORTBREHD.idx*21949*2020/01/09 22:32", "Blue.Planet.II.S01E05.1080p.BluRay.x264-SHORTBREHD.sub*3373056*2020/01/09 22:32", "Blue.Planet.II.S01E06.1080p.BluRay.x264-SHORTBREHD.idx*22354*2020/01/09 22:32", "Blue.Planet.II.S01E06.1080p.BluRay.x264-SHORTBREHD.sub*3690496*2020/01/09 22:32", "Blue.Planet.II.S01E07.1080p.BluRay.x264-SHORTBREHD.idx*31489*2020/01/09 22:32", "Blue.Planet.II.S01E07.1080p.BluRay.x264-SHORTBREHD.sub*6014976*2020/01/09 22:32", 28021406, "", ]; delete(Array.prototype.p); // remove alias added above $(document).ready(function(){ var numberOfFiles = 160834; var linkFiles = true; var linkProtocol = ""; var linkRoot = "https://ak.bk201.cf/"; var sourceRoot = "00"; var sourceParent = sourceRoot.substring( 0, sourceRoot.lastIndexOf("/") +1 ); var originalHash = location.hash.replace(/#/,""); var SelectedFolderID = "-1"; var currentView; /* --- Init --- */ $("#tot_size").text( bytesToSize( $("#tot_size").text() ) ); $("#loading").remove(); $("#content").show(); // set size of areas $("#content").height( $("#wrapper").outerHeight(true) - $("#app_header").outerHeight(true) -1 ); setTimeout( function() { $("#list_files").height( $("#content").height() - $("#list_header").outerHeight(true) - $("#list_footer").outerHeight(true) - 1); },1); $("#content").splitter( { sizeLeft: 200 } ); // build parent folder lookup window.parent_folders = []; parent_folders[0] = 0; var numDirs = dirs.length; for( var id=0; id< numDirs; id++ ) { var subdirs = getSubdirs( id ); if( subdirs != "" ) { for( var c=0; c 1000 ) searchDelay = 1000; var searchKeyPressHandler = debounce(function(keyEvent) { // cancel debounced event if no keyEvent if(!keyEvent) return; // skip searching on keys: tab, shift, ctrl, alt, end, home, arrows var keysToSkip = [9,16,17,18,35,36,37,38,39,40]; if(keysToSkip.indexOf(keyEvent.keyCode) !== -1) { return; } // on mobile, skip auto search on keypress if (/Mobi/.test(navigator.userAgent)) { return; } doSearch(false); }, searchDelay); document.getElementById("search_text").addEventListener('input', searchKeyPressHandler); // for handling pressing the x document.getElementById("search_text").addEventListener('keypress', searchKeyPressHandler); document.getElementById("search_text").addEventListener('keypress', function(keyEvent) { if( keyEvent.keyCode == 13 ) { // on enter key search immediately searchKeyPressHandler(null); // cancel any current debounced event doSearch(true); } }); var SearchFilenames = []; var SearchLocations = []; var SearchLocationsRaw = []; var SearchLocationsID = []; var SearchIsDir = []; var PreviouslySelectedNode = null; var PreviousSearchFor = ""; var PreviousSearchForMode = "all"; var currentDir = ""; var currentDirID = -1; function doSearch(enterPressed) { var SearchFor = $("#search_text").val().toLowerCase(); if (String.prototype.trim) { // in case not available in browser SearchFor = SearchFor.trim(); } // prevent automatic search for short queries if(SearchFor.length > 0 && SearchFor.length <= 2 && !enterPressed) return; // search only current folder and optionally subfolders using > and >> var SearchForMode = "all"; var searchThisDirOnly = false; var searchThisDirOnlyIncludeSubdirs = false; if(SearchFor.indexOf(">") === 0) { searchThisDirOnly = true; SearchForMode = "dir"; SearchFor = SearchFor.substr(1); // removes first character if(SearchFor.indexOf(">") === 0) { searchThisDirOnlyIncludeSubdirs = true; SearchFor = SearchFor.substr(1); SearchForMode = "subdirs"; } } // prevent searching twice if(SearchFor === PreviousSearchFor && PreviousSearchForMode === SearchForMode) return; PreviousSearchFor = SearchFor; PreviousSearchForMode = SearchForMode; if( SearchFor === "" ) { if( PreviouslySelectedNode != null ) { PreviouslySelectedNode.activate(); PreviouslySelectedNode = null; } return; } if( numberOfFiles > 5000 ) { $("#list_header").html( "Searching..." ); } location.hash = ""; setTimeout(function(){ // timeout allows redrawing screen before possible timeconsuming search if( SelectedFolderID != -1 ) { PreviouslySelectedNode = $("#treeview").dynatree("getActiveNode"); SelectedFolderID = "-1"; $("#treeview").dynatree("getActiveNode").deactivate(); } var hide_root = ( sourceRoot.length > 3 ); var numDirs = dirs.length; var c; // if no previous search, do some pre-processing for faster search if( SearchFilenames.length === 0 ) { var nFound = 0; for( c=1; c ok for both searchThisDirOnly and searchThisDirOnlyIncludeSubdirs if(SearchIsDir[index] && SearchLocationsID[index] == currentDirID) { // always skip current dir which appears here console.log(" skip current dir"); return; } console.log(" file in current dir"); } else if(SearchIsDir[index] && path[path.length-2] === currentDirID) { // dir in current dir are also ok console.log(" dir in current dir"); } else if(path.indexOf(currentDirID) !== -1) { // item is in a subdir: ok for searchThisDirOnlyIncludeSubdirs console.log(" item in subdir"); if(!searchThisDirOnlyIncludeSubdirs) { console.log(" ...skip"); return; } } } dir_tmp = dir_tmp.substring(sourceRoot.length); if( dir_tmp != "" ) dir_tmp += "/"; if( SearchIsDir[index] === true ) { countDirs++; sizeDirs += SearchFilenames[index][1]; var subdir_id = parent_folders[ SearchLocationsID[index] ]; var located_in = SearchLocations[index]; if( located_in === "" ) located_in = "[.]" located_in = located_in.substring( 0, located_in.lastIndexOf("\\") ); table_html += "" + " " + SearchFilenames[index][3] + "" + " " + located_in + "" + "" + bytesToSize( SearchFilenames[index][1] ) + "" + "" + SearchFilenames[index][2] + "" + "\n"; currentView.push( { "name": SearchFilenames[index][3], "path": SearchLocationsRaw[index].replace(/\//g,"\\"), "type": "dir", "size": SearchFilenames[index][1], "date": SearchFilenames[index][2] } ); } else // files { sizeFiles += SearchFilenames[index][1]; countFiles++; if( linkFiles ) { file_tmp = linkProtocol + linkRoot + dir_tmp.replace("\\","/") + SearchFilenames[index][3] + "\">"; if( navigator.userAgent.toLowerCase().indexOf("msie") !== -1 && linkProtocol.indexOf("file:") !== -1 ) { file_tmp = "javascript:alert('Internet Explorer does not allow linking to local files...')" + "\">"; } if( file_tmp.substr(0,1) === "/" ) file_tmp = file_tmp.substr(1); file_tmp = file_tmp.replace(/\\/g,"/"); file_tmp = file_tmp.replace(/#/g,"%23"); var indx = file_tmp.indexOf("://"); if( indx !== -1 ) { var protocol_tmp = file_tmp.substr(0,indx+3); file_tmp = file_tmp.substr(indx+3); file_tmp = file_tmp.replace(/\/\//g,"/"); file_tmp = protocol_tmp + file_tmp; } else { file_tmp = file_tmp.replace(/\/\//g,"/"); } file_tmp = ""; } var located_in = SearchLocations[index]; if( located_in === "" ) located_in = "[.]" table_html += "" + "" + file_tmp + "" + " " + located_in + "" + "" + bytesToSize( SearchFilenames[index][1] ) + "" + "" + SearchFilenames[index][2] + "" + "\n"; currentView.push( { "name": SearchFilenames[index][3], "path": SearchLocationsRaw[index].replace(/\//g,"\\"), "type": "file", "size": SearchFilenames[index][1], "date": SearchFilenames[index][2] } ); } } // search for matches // optimization: use indexOf if no wildcards since it's faster if(SearchFor.indexOf("*") !== -1 || SearchFor.indexOf("?") !== -1) { var SearchForEscaped = SearchFor.replace(/[\-\[\]\/\{\}\(\)\+\.\\\^\$\|]/g, "\\$&"); SearchForEscaped = SearchForEscaped.replace(/\*/g, ".*"); SearchForEscaped = SearchForEscaped.replace(/\?/g, "."); var regEx = new RegExp(SearchForEscaped); for( c=0; c< SearchFilenames.length; c++ ) { if( regEx.test(SearchFilenames[c][0]) ) { foundItem(c); } } } else { for( c=0; c< SearchFilenames.length; c++ ) { if( SearchFilenames[c][0].indexOf(SearchFor) !== -1 ) { foundItem(c); } } } table_html += "\n"; $("#list_header").html( "Search Results " ); document.getElementById("list_files").innerHTML = table_html; addFolderClickEventHandlers(); $("#files").tablesorter( { sortInitialOrder: "desc" } ); var sFiles = " files"; if(countFiles===1) sFiles = " file"; var sDirs = " folders"; if(countDirs===1) sDirs = " folder"; $("#list_footer_info_label").html( countDirs + sDirs + " (" + bytesToSize( sizeDirs , 0 ) + "), " + countFiles + sFiles + " (" + bytesToSize( sizeFiles , 0 ) + ")" ); }, 1); // end setTimeout before search }; // end doSearch() /* --- Show content of a folder --- */ function ShowFolder( FolderID ) { var c; if( SelectedFolderID === FolderID ) return false; $("#treeview #" + SelectedFolderID ).removeClass("treeview_bold"); SelectedFolderID = FolderID; $("#search_text").val(""); PreviousSearchFor = ""; var path = getPathToDir(FolderID); var currentViewPath = getDirNameAndPath(FolderID).replace(/\//g,"\\"); var breadcrumbs = ""; for( c=0; c" + dirName + "" + ""; } currentDir = getDirNameAndPath(FolderID); currentDirID = Number(FolderID); location.hash = '#' + currentDir; $("#list_header").html( breadcrumbs ); var table_html = ""; table_html += "\n"; currentView = []; var countFiles = 0; var countDirs = 0; var subdirTotSizes = 0; // folders if( FolderID != 0 ) table_html += "\n"; var subdirs = getSubdirs( SelectedFolderID ); if( subdirs != "" ) { for( c=0; c< subdirs.length; c++ ) { countDirs++; var sTmp = dirs[ subdirs[c] ][0].split("*"); var name = sTmp[0].substring( sTmp[0].lastIndexOf("/") +1 ); var dirSize = getDirTreeSize( subdirs[c] ); subdirTotSizes += dirSize; table_html += "" + "" + "" + "" + "\n"; currentView.push( { "name": name, "path": currentViewPath, "type": "dir", "size": dirSize, "date": sTmp[2] } ); } } // files for( c=1; c< dirs[ SelectedFolderID ].length-2; c++ ) { countFiles++; var sTmp = dirs[ SelectedFolderID ][c].split("*"); var file_tmp = sTmp[0]; var dir_tmp = getDirNameAndPath(SelectedFolderID).substring(sourceRoot.length); if( dir_tmp != "" ) dir_tmp += "/"; if( linkFiles ) { file_tmp = linkProtocol + linkRoot + dir_tmp + sTmp[0] + "\">"; if( navigator.userAgent.toLowerCase().indexOf("msie") !== -1 && linkProtocol.indexOf("file:") !== -1 ) { file_tmp = "javascript:alert('Internet Explorer does not allow linking to local files...')" + "\">"; } if( file_tmp.substr(0,1) === "/" ) file_tmp = file_tmp.substr(1); file_tmp = file_tmp.replace(/\\/g,"/"); file_tmp = file_tmp.replace(/#/g,"%23"); var indx = file_tmp.indexOf("://"); if( indx !== -1 ) { var protocol_tmp = file_tmp.substr(0,indx+3); file_tmp = file_tmp.substr(indx+3); file_tmp = file_tmp.replace(/\/\//g,"/"); file_tmp = protocol_tmp + file_tmp; } else { file_tmp = file_tmp.replace(/\/\//g,"/"); } file_tmp = ""; } table_html += "" + "" + "" + "" + "\n"; currentView.push( { "name": sTmp[0], "path": currentViewPath, "type": "file", "size": sTmp[1], "date": sTmp[2] } ); } table_html += "
NameSizeModified
[..]
" + name + "" + bytesToSize( dirSize ) + "" + sTmp[2] + "
" + file_tmp + "" + bytesToSize( sTmp[1] ) + "" + sTmp[2] + "
\n"; document.getElementById("list_files").innerHTML = table_html; addFolderClickEventHandlers(); $("#files").tablesorter( { sortInitialOrder: "desc" } ); var sFiles = " files"; if(countFiles===1) sFiles = " file"; var sDirs = " folders"; if(countDirs===1) sDirs = " folder"; $("#list_footer_info_label").html( countDirs + sDirs + " (" + bytesToSize( subdirTotSizes )+ "), " + countFiles + sFiles + " (" + bytesToSize( dirs[ SelectedFolderID ][ dirs[ SelectedFolderID ].length-2 ] )+ ")" ); $("#treeview #" + SelectedFolderID ).addClass("treeview_bold"); return false; } /* --- Treeview --- */ function PopulateTreeviewNode( node ) { var subdirs = getSubdirs( node.data.key ); if( subdirs != "" ) { var len = subdirs.length; for( var c=0; c 0) { $("#csv_lightbox").fadeOut("fast"); } } }); /* --- Helper Functions --- */ function expandToFolder( id ) { var tree = $("#treeview").dynatree("getTree"); var node = tree.getNodeByKey( id.toString() ); if(node) { node.activate(); } } function getFolderIdFromPath( path ) { for( var c=0; c 0) { path.push(parentId); parentId = parent_folders[parentId]; } path.push(0); return path.reverse(); } function getDirSize( id ) { if( dirs.length <= id ) return "0"; return dirs[id][ dirs[id].length-2 ]; } function getDirTreeSize( id ) { if( dirs.length <= id ) return "0"; var totSize = getDirSize(id); var subdirs = getSubdirs( id ); if( subdirs != "" ) { var len = subdirs.length; for( var c=0; c= 0) && (bytes < kilobyte)) { return bytes + ' bytes'; } else if ((bytes >= kilobyte) && (bytes < megabyte)) { return (bytes / kilobyte).toFixed(0) + ' KB'; } else if ((bytes >= megabyte) && (bytes < gigabyte)) { return (bytes / megabyte).toFixed(1) + ' MB'; } else if ((bytes >= gigabyte) && (bytes < terabyte)) { return (bytes / gigabyte).toFixed(2) + ' GB'; } else if (bytes >= terabyte) { return (bytes / terabyte).toFixed(2) + ' TB'; } else { return bytes + ' bytes'; } } // debounce() from Underscore.js // Returns a function, that, as long as it continues to be invoked, will not // be triggered. The function will be called after it stops being called for // N milliseconds. If `immediate` is passed, trigger the function on the // leading edge, instead of the trailing. function debounce(func, wait, immediate) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if (!immediate) func.apply(context, args); }; var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait); if (callNow) func.apply(context, args); }; }; }); // end $(document).ready
× Close Show:
Columns:
>>>>>>> ac624a028a9335414075d516d7bd253cf3c158f5